/*********  一些初始样式  *********/
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
/* 去除图片底部4px白边 */
img{
    vertical-align: middle;
}
/* 去除li的点 */
ul{
    list-style: none;
}
/* 重置a标签的默认样式 */
a{
    text-decoration: none;
    color: black;
}

/*********  登录的样式  *********/
body{
    background: url("../img/admin/login/1.jpg");
    background-size: cover;
}

.login{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    /*实现块元素百分比下居中*/
    width:450px;
    padding:50px;
    background: rgba(255,255,255,.5);
    box-sizing:border-box;
    box-shadow: 0 15px 25px rgba(0,0,0,.3);
    border-radius:15px;
}
.login h2{
    margin:0 0 30px;
    padding:0;
    color: #000;
    text-align:center;
}
.login .inputBox{
    position:relative;
}
.login .inputBox input{
    width: 100%;
    padding:10px 0;
    font-size:16px;
    color:#000;
    letter-spacing: 1px;
    margin-bottom: 30px;
    border:none;
    border-bottom: 1px solid #000;
    outline:none;
    background: transparent;
}
.login .inputBox label{
    position:absolute;
    top:0;
    left:0;
    padding:10px 0;
    font-size: 16px;
    color:#000;
    pointer-events:none;
    transition:.5s;
}
.login .inputBox input:focus ~ label,
.login .inputBox input:valid ~ label{
    top:-18px;
    left:0;
    color:deepskyblue;
    font-size:14px;
}
.login input[type="submit"]{
    border:none;
    outline:none;
    font-size: 16px;
    color:#000;
    background: rgba(255,255,255,.4);
    padding:15px 20px;
    cursor: pointer;
    border-radius:10px;
}
.login a{
    border:none;
    outline:none;
    font-size: 16px;
    color:#000;
    background: rgba(255,255,255,.4);
    padding:15px 20px;
    cursor: pointer;
    border-radius:10px;
}
.login a:hover{
    background: rgba(212, 212, 212, 0.6);
}
.login input[type="submit"]:hover{
    background: rgba(212, 212, 212, 0.6);
}

.login .login_sub{
    text-align: center;
}

@media only screen and (max-width:768px) {
    /*body{*/
    /*    background-position-x: -380px;*/
    /*}*/
}
